package com.pubinfo.passbook.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统操作日志
 *
 * @TableName t_system_operation_log
 */
@TableName(value = "t_system_operation_log")
@Data
@NoArgsConstructor
@ApiModel(value = "TSystemOperationLog", description = "系统操作日志")
public class TSystemOperationLog implements Serializable {
  /**
   *
   */
  
  @TableId(type = IdType.ASSIGN_UUID)
  private String id;
  
  /**
   * 操作用户名
   */
  @ApiModelProperty(value = "操作用户名")
  private String username;
  
  /**
   * 执行时间
   */
  @ApiModelProperty(value = "执行时间")
  private Long time;
  
  /**
   * ip
   */
  @ApiModelProperty(value = "ip")
  private String ip;
  /**
   * 参数
   */
  @ApiModelProperty(value = "参数")
  private String params;
  
  /**
   * 方法名
   */
  @ApiModelProperty(value = "方法名")
  private String method;
  
  @ApiModelProperty(value = "用户操作")
  private String action;
  @ApiModelProperty(value = "菜单")
  private String menu;
  @ApiModelProperty(value = "子菜单")
  private String subMenu;
  /**
   * 操作
   */
  @ApiModelProperty(value = "操作")
  private String operation;
  
  /**
   * 创建时间
   */
  @ApiModelProperty(value = "创建时间")
  @TableField(fill = FieldFill.INSERT)
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date createTime;
  
  @TableField(exist = false)
  private static final long serialVersionUID = 1L;
}